export function reducer(state, action) {
    switch(action.type){
        case "CHANGE_NAME":
            state.name = action.name
            return {...state}
    }
}

export const initState = {
    name: "张三",
    age: 30
}